//
//  MMGSocketMsgModel.h
//  MyApp
//
//  Created by Don on 2017/8/29.
//  Copyright © 2017年 com.memego. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Mantle/Mantle.h>

typedef enum {

    EMMMGSocketMsgAckTypeNone = 0,
//    EMMMGSocketMsgAckTypeSyncTime,
    EMMMGSocketMsgAckTypeLogin,
    EMMMGSocketMsgAckTypeSocketConnected,
    EMMMGSocketMsgAckTypeConnectedDevice,
    EMMMGSocketMsgAckTypeReserveGame,
    EMMMGSocketMsgAckTypeReadyStartGame,
    EMMMGSocketMsgAckTypeStartGame,
    EMMMGSocketMsgAckTypeControlDevice,
    EMMMGSocketMsgAckTypeDownClaw,
    EMMMGSocketMsgAckTypeWinPraize,
    EMMMGSocketMsgAckTypeWinPraizeAck,
    EMMMGSocketMsgAckTypeHeartbeat,
    
    EMMMGSocketMsgAckTypeCancelGame,
    EMMMGSocketMsgAckTypeDeviceStatistics,
    EMMMGSocketMsgAckTypeUserAccessAmount,

}EMMMGSocketMsgAckType;

@interface MMGSocketMsgModel : MTLModel<MTLJSONSerializing>

@property (nonatomic, assign) int code;
@property (nonatomic, assign) long long timestamp;
@property (nonatomic, assign) EMMMGSocketMsgAckType type;
@property (nonatomic, strong) NSString *data;


+ (MMGSocketMsgModel *)modelFromDataJson:(id)data;
@end
